package com.poly.flowable.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * 查询属性
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class OrderBy implements Serializable {

    @ApiModelProperty(value = "排序字段")
    private String field = "";

    @ApiModelProperty(value = "排序方式（asc : 1 , desc : 2")
    private int order = 2;

}
